<template>
  <div class="about">
    <v-header />
    <v-sidebar />
    <div class="content-box" :class="{ 'content-collapse': useStore.collapse }">
      <v-tags></v-tags>
      <div class="content">
        <router-view v-slot="{ Component }">
          <transition name="move" mode="out-in">
            <keep-alive :include="includeList">
              <component :is="Component" />
            </keep-alive>
          </transition>
        </router-view>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { useAllStore } from "@/store/modules/base";
import vHeader from "@/layout/Header/index.vue";
import vSidebar from "@/layout/Sidebar/Sidebar.vue";
import vTags from "@/layout/Tags.vue";
const useStore = useAllStore();
const includeList = ref([]);
</script>
<style scoped lang="scss">
.content-box {
  width: auto;
  position: absolute;
  left: 250px;
  right: 0;
  top: 70px;
  bottom: 0;
  padding-bottom: 30px;
  -webkit-transition: left 0.3s ease-in-out;
  transition: left 0.3s ease-in-out;
  background: #f0f0f0;
  .content {
    width: auto;
    height: 100%;
    padding: 10px;
    overflow-y: auto;
    box-sizing: border-box;
  }
}
.content-collapse {
  left: 65px;
}
</style>
